package com.djhu.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.inter.DepService2;


@RestController
public class ConsumerController {
	
	private static final Logger log = LoggerFactory.getLogger(ConsumerController.class);
	
	@Autowired
	private DepService2 depService;
	
	@RequestMapping(value="/list",method=RequestMethod.GET,produces="application/json;charset=utf-8")
	public Object queryAll() {
		log.info("ConsumerController queryAll start !!!!");
		return depService.queryAll();
	}

}
